package app.conf;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import app.handler.SessionHandlerInterceptor;

/**
 * @author shishun.wang
 * @date 下午3:56:21 2016年5月4日
 * @version 1.0
 * @describe 
 */
@Configuration
public class WebAppConfig extends WebMvcConfigurerAdapter {

	@Autowired
	private SessionHandlerInterceptor sessionHandlerInterceptor;
	
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
//		super.addInterceptors(registry);
		registry.addInterceptor(sessionHandlerInterceptor).addPathPatterns("/**");
	}

	
}
